package com.luocj.muke.demo.model;

import java.io.Serializable;
import java.util.List;

public class NewsModel implements Serializable {
    /**
     * code : 200
     * msg : success
     * newslist : [{"ctime":"2017-10-28 08:11","title":"瑞士情侣印度惨遭群殴 路人不援助还拍照！","description":"搜狐国际","picUrl":"","url":"http://www.sohu.com/a/200747326_267106"}]
     */

    private int code;
    private String msg;
    private List<NewslistBean> newslist;

    @Override
    public String toString() {
        return "NewsModel{" +
                "code=" + code +
                ", msg='" + msg + '\'' +
                ", newslist=" + newslist +
                '}';
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public List<NewslistBean> getNewslist() {
        return newslist;
    }

    public void setNewslist(List<NewslistBean> newslist) {
        this.newslist = newslist;
    }

    public static class NewslistBean {
        /**
         * ctime : 2017-10-28 08:11
         * title : 瑞士情侣印度惨遭群殴 路人不援助还拍照！
         * description : 搜狐国际
         * picUrl :
         * url : http://www.sohu.com/a/200747326_267106
         */

        private String ctime;
        private String title;
        private String description;
        private String picUrl;
        private String url;

        public String getCtime() {
            return ctime;
        }

        public void setCtime(String ctime) {
            this.ctime = ctime;
        }

        public String getTitle() {
            return title;
        }

        public void setTitle(String title) {
            this.title = title;
        }

        public String getDescription() {
            return description;
        }

        public void setDescription(String description) {
            this.description = description;
        }

        public String getPicUrl() {
            return picUrl;
        }

        public void setPicUrl(String picUrl) {
            this.picUrl = picUrl;
        }

        public String getUrl() {
            return url;
        }

        public void setUrl(String url) {
            this.url = url;
        }

        @Override
        public String toString() {
            return "NewslistBean{" +
                    "ctime='" + ctime + '\'' +
                    ", title='" + title + '\'' +
                    ", description='" + description + '\'' +
                    ", picUrl='" + picUrl + '\'' +
                    ", url='" + url + '\'' +
                    '}';
        }
    }
}
